<?

require "includes/ccs.php";
$ccs = new CCS();

$ccs->ccs_init();

$custom_display = &$_GET['custom_display'];

//var_dump(class_exists($ccs->link->class),$ccs->link);
//exit;

if ($ccs->link->id==1){
	$ccs->__destruct();
 	$class = new FirstPage();
 	$class->show_page();

}elseif ( strlen($ccs->link->url) > 0 ){
	header("Location:".$ccs->link->url);
}else{
	$ccs->__destruct();
	if (class_exists($ccs->link->class)){
  		$class = new $ccs->link->class;
  		$class->show_page($custom_display);
	}else{
  		$class = new SimplePage;
  		$class->show_page($custom_display);
	}
}

//var_dump($ccs);

exit();

?>
